package com.zhangh.summer.admin.biz.menu;

import com.zhangh.summer.admin.model.bo.MenuBO;
import com.zhangh.summer.admin.model.bo.MenuQuery;
import com.zhangh.summer.admin.model.po.AdMenuPO;
import com.zhangh.summer.admin.model.po.AdOperationPO;

import java.util.List;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2021-09-28 23:31
 **/
public interface MenuBiz {

    public List<MenuBO> getMenuList(MenuQuery query);

    public MenuBO getMenuBO(Long id);

    public Long saveMenu(MenuBO menuBO);

    public int updateMenu(MenuBO menuBO);

    public int deleteMenu(Long id);

    public void menuSort(List<MenuBO> menuBOList);

    public List<MenuBO> getAuthMenuList(Long authID);

    public List<MenuBO> getUserAuthMenuList(Long userID);

    public List<MenuBO> getAuthMenuListForCheck(Long authID);

    public List<MenuBO> getMenuTreeList(List<AdMenuPO> menuPOList, List<AdOperationPO> operationPOList,
                                        List<Long> checkedMenuList, List<Long> checkedOperationPOList);

    public MenuBO getHomeMenu();

    public int setHome(Long id);



}
